package com.todo.biz.iface.frontend.request;

import com.todo.common.common.entity.CurrentUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2024/5/10 16:30
 * @description
 */
@Data
@Schema(title = "新增反馈参数", description = "新增反馈参数")
public class InsertFeedbackParam {

    private CurrentUser _user;

    @Schema(name = "业务场景", description = "业务场景")
    private Integer businessScene;

    @Schema(name = "业务id", description = "业务id")
    private String businessId;

    @Schema(name = "反馈类型", description = "反馈类型")
    private Integer feedbackType;

    @Schema(name = "标题", description = "标题")
    private String title;

    @Schema(name = "内容", description = "内容")
    private String content;

    @Schema(name = "用户手机号", description = "用户手机号")
    private String userPhone;

    @Schema(name = "图片列表", description = "图片列表最大9张")
    private List<String> imgList;


    public boolean baseCheck() {
        if (businessScene == null ||  feedbackType == null || title == null || content == null){
            return false;
        }
        return true;
    }
}
